package com.secsbrain.development.biz.constant;

/**
 * 对枚举数据的定义
 * 
 * @author zhaoyi
 *
 */
public class EnumDefinition {
	
	/**
     * 审批状态
     * @author     zhaoyi
     */
    public enum ApprovalStatus {

        INIT(0,"未审批"),
        AGREE(1,"审批通过"),
    	REFUSE(2,"审批驳回");
        
        private Integer code;
        private String desc;
        
        ApprovalStatus(Integer code,String desc){
            this.code=code;
            this.desc=desc;
        }
        
        public Integer getCode(){
            return this.code;
        }
        public String getDesc(){
            return this.desc;
        }
    }
    
    /**
     * 测试状态
     * @author     zhaoyi
     */
    public enum TestStatus {

        INIT(0,"未测试"),
        NONE(1,"发布有失败不测试"),
        ING(2,"测试任务执行中"),
    	FAIL(3,"测试申请失败"),
        FINISH(4,"测试回调完成");
        
        private Integer code;
        private String desc;
        
        TestStatus(Integer code,String desc){
            this.code=code;
            this.desc=desc;
        }
        
        public Integer getCode(){
            return this.code;
        }
        public String getDesc(){
            return this.desc;
        }
    }
    
    /**
     * 分支动作类型
     * @author     zhaoyi
     */
    public enum BranchActionType {

        PULL(1,"拉取"),
        MERGE(2,"合并");
        
        private Integer code;
        private String desc;
        
        BranchActionType(Integer code,String desc){
            this.code=code;
            this.desc=desc;
        }
        
        public Integer getCode(){
            return this.code;
        }
        public String getDesc(){
            return this.desc;
        }
    }
    
}
